﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Donators_CRUD_Demo
{
    public class Donator
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public decimal Amount { get; set; }
        public DateTime DonateDate { get; set; }

        public virtual Province Province { get; set; }
    }

    public class Province
    {
        public Province()
        {
            Donators = new HashSet<Donator>();
        }

        public int Id { get; set; }
        [StringLength(225)]
        public string ProvinceName { get; set; }
        public virtual ICollection<Donator> Donators { get; set; }
    }
}
